<?php
/**
 * Created by PhpStorm.
 * User: Talent Gao
 * Date: 14-9-2
 * Time: 上午8:55
 */

define('_COOKIE_KEY_', '');
define('_COOKIE_IV_', '');

define('_RIJNDAEL_KEY_', '');
define('_RIJNDAEL_IV_', '');
define('_HTTP_CLOUD_HOST','http://vtbug.com:8114');
define('_ADD_USER_CONPANY_NUM',5);
//define("IMAGE_URL_ADMIN","http://img.suliaojiaoyi.com");//定义图片
define("IMAGE_URL_ADMIN","http://vtbug.com:8113");//定义图片
define("LOG_DIR",realpath(dirname(__FILE__) . '/logs'));//定义日志目录

//这边定义发送短信的
$_MessageCfg = array(
    'register'=>'open',//open
    'findpassword'=>'open'
);

$_SampleStateMean = array(
    1 =>'待审核',
    2 =>'待发货',
    3 =>'配送中',
    4 =>'已完成',
    5 =>'已拒绝',
);

$_SampleStateCfg = array(
    'audit_delivery' =>1,
    'wait_delivery' =>2,
    'have_delivery' =>3,
    'done_delivery' =>4,
    'cancel_delivery' =>5,
);


//分类配置
$_cateArr = array(
    'HDPE'  => 63,
    'LDPE'  => 64,
    'LLDPE' => 67,
    'PP'    => 60,
    'MLLDPE'=> 48,
);

$_EventKeyworkCfg = array(
    'sample' => '免费试样'
);

$_GlobalLanguageCN =array(
    0 => '请输入正确的验证码',
    1 => '验证成功',
    2 => '请输入手机号码',
    3 => '两次密码输入不一致',
    4 => '密码过于简单',
    5 => '手机号码不存在',
    6 => '密码更新成功',
    7 => '你访问不正确'
);

$_wxconfig = array(
    'appId' => "wxacd3c21e4f1582ed",
    'appSecret' => "09ea752e7acc74e358b5d78886af7343",
    'redirect' => "http://m.sumibuy.com/login/oauth",
    'scope' => "snsapi_userinfo",
);

//默认客服配置
$_ServiceCfg = array(
    'realname' => '冯丽娇',
    'phone' => '021-61657142',
    'mobile' => '15000199742',
    'qq' => '2853708775',
    'personpic' => '/images/temp/hlj.jpg',
);

//短信开关
$_SmsSendSwitch = array(
    'op_buy' =>0, //发布报价 1打开，0关闭
    'op_reg' =>0, //完成注册 1打开，0关闭
    'op_cod' =>0, //创建订单 1打开，0关闭
    'op_find'=>1, //找回密码
);

$_SmsSendContent = array(
    'op_buy_c' => '您求购的%d1已经有报价回复，请及时关注www.sumibuy.com',
    'op_reg_c' => '恭喜您成功注册，登录名：%d1，赶快去发布采购或供应信息吧，详情请咨询4009911900',
    'op_cod_c' => '您的报价%d1有客户下单，请及时关注www.sumibuy.com',
    'op_find_c'=> '您正在找回密码操作，动态验证码为: %d1 （30分钟有效）如非本人操作请忽略',
);


//求购配置
$_BuyStartMean = array(
    1 =>'等待审核',
    2 =>'等待报价',
    3 =>'正在洽谈',
    4 =>'正在交易',
    5 =>'交易完成',
    6 =>'取消',
);
$_BuyStateCfg = array(
    'wait_audit'=>1,
    'audit'=>2,
    'Negotiate'=>3,
    'Trading'=>4,
    'done'=>5,
    'cancel' =>6,
);


$_saleOrderSource    = array(
    'stock'    => '现货认购',
    'presale'  => '外库认购',
    'require'  => '求购认购',
    'app'      => 'APP下单',
    'sumibuy'  => '塑米城下单',
    'mobile'   => '手机端',
    'manual'   => '代客下单',
    'outer'=>''
);

//订单类型
$_saleOrderType = array(
    'stock'=>'1',//自有
    'outer'=>'2', //第三方
    'require'=>'3' //第三方
);
$_saleOrderTypeMean = array(
    1 => '现货订单',
    2 => '供应订单',
);


//报价配置
$_suppliyStateMean = array(
    1=>'待审核',
    2=>'已上架',
    3=>'已下架',
    4=>'审核不通过',
);
$_suppliyStateCfg = array(
    'audit'=>1,
    'up'=>2,
    'down'=>3,
    'cancel'=>4,
);


$_currencyMean = array(
    'RMB' => '人民币',
    'USD'   => '美元',
);

$_currencyNoMean = array(
    '1' => '人民币',
    '2'   => '美元',
);

$_currencyNoCfg = array(
    '人民币' => '1',
    '美元'   => '2',
);
$_currencyCode  = array(
    '1' => 'RMB',
    '2' => 'USD',
);
$_currencyMark  = array(
    '1' => '￥',
    '2' => '$',
);

$_currencyMeanCfg = array(
    '人民币' => 'RMB',
    '美元'   => 'USD',
);



//求购报价意向单配置
$_BidPurchaseMean = array(
    1 => '待审核',
    2 => '待下单',
    3 => '已成交',
    4 => '已过期',
    5 => '已取消',
);
$_BidPurchaseCfg = array(
    'audit' => 1,
    'order' => 2,
    'deal' => 3,
    'overdue' => 4,
    'cancel' => 5,
);


//销售单配置(供应订单)
$_SupplyOrderMean = array(
    1 => '待确认',
    2 => '交易中',
    3 => '已完成',
    4 => '已取消',
);
$_SupplyOrderCfg = array(
    'audit' => 1,
    'deal' => 2,
    'done' => 3,
    'cancel' => 4,
);

$_SampleStateMean = array(
    1 =>'待审核',
    2 =>'待发货',
    3 =>'配送中',
    4 =>'已完成',
    5 =>'已取消',
);

$_SampleStateCfg = array(
    'audit_delivery' =>1,
    'wait_delivery' =>2,
    'have_delivery' =>3,
    'done_delivery' =>4,
    'cancel_delivery' =>5,
);


//采购单配置
$_PurchaseOrderMean = array(
    0=> "未知",
    1 => '待审核',
    2 => '交易中',
    3 => '已完成',
    4 => '已取消',
);
$_PurchaseOrderCfg = array(
    'audit' => 1,
    'deal' => 2,
    'done' => 3,
    'cancel' => 4,
);

$_ServiceStateMean = array(
    1 =>'现货',
    2 =>'期货'
);
$_ServiceStateCfg = array(
    'price'   =>'1',
    'Futures' =>'2'
);
//认购单状态
$_subscribeStateMean = array(
    1   => '待审核',
    2   => '可执行',
    3   => '不可执行',
    4   => '作废',
);
$_subscribeStateCfg  = array(
    'wait_effect'   => 1,
    'take_effect'   => 2,
    'field_effect'   => 3,
    'cancel'   => 4,
);


$_saleOrderSource    = array(
    'stock'    => '自有库存',
    'outer'  => '外库',
    'presale'=>'预售',
    'require'  => '求购',
    'app'      => 'APP下单',
    'sumibuy'  => '塑米城下单',
    'mobile'   => '手机端',
    'manual'   => '代客下单'
);
$_saleOrderSourcecfg   = array(
    's'    => 'stock',
    'o'    => 'outer',
    'p'    =>'presale',
    'r'    => 'require',
    'a'    => 'app',
    's'    => 'sumibuy',
    'm'    => 'mobile',
    'ma'   => 'manual'
);

$_salePayTypeText   = array(
    1    => "款到发货", // 银行转账
    2    => "货到付款", // 货到付款(现金)
);

$_salePayTypeTextcfg  =array(
    'cod'  => 1,
    'pay'  => 2,
);


//产品上架状态配置项
$_productCarriageStatusCfg = array(
    'InEditing' => 0, //编辑中
    'Wait_CG' => 1, //等待采购审核
    'Wait_CK' => 2, //等待仓储审核
    'Wait_SC' => 3, //等待市场审核
    'waitCh' => 6,
    'waitPl' => 7,
    'CarriageNormal' => 8, //已上架
    'CarraigeOff' => 9 //已下架
);

//产品类型配置项
$_productTypeCfg = array(
    'B'     => 'showB2c',
    'W'     => 'showWarehouseOut',
    'F'     => 'showFutures',
    'D'     => 'showDuiHua'
);

// 登录类型配置
$_loginTypeCfg = array(
    'User' => 'U', // 用户
    'Booklet' => 'B', // 定制礼品册
    'Card' => 'C', // 礼品卡
    'Univbooklet' => 'G', // 通用礼品册
);

// 用户登录项设置
$_userLoginItemCfg = array(
    'User' => 'U',
    'Email' => 'E', // Email
    'Mobile' => 'M', // 手机号
    'Tencent' => 'Q', // 腾讯用户
    'Sina' => 'S', // 新浪微博用户
    'Alipay' => 'A' , // 支付宝用户
    'WeiXin' => 'W'  //微信
);

//购物车 类型
$_shopCartType = array(
    'Duihuan' => 0, //来自兑换
    'B2C' => 1    //来自B2C
);

## 订单类型
$_orderType = array(
    'BUY'           => 'B',
    'EXCHANGE'      => 'E',
    'CHANGE_GOODS'  => 'C',
    'SUPPLY_GOODS'  => 'S',
    'NORMAL_B2C'    => 'N',
    'ULTRA_SPEED'   => 'U',
    'GREETING_CARD' => 'G',
    'Flower'        => 'F',
    'TUAN'          => 'T',
    'DESCENDANT'    => 'D',
    'Quotation'     => 'Q',
    'UsDollar'      => 'X',
    //'CREDIT'        => 'R',
);
## 订单类型说明
$_orderTypeMean = array(
    'B'     => '购买',
    'E'     => '积分订单',
    'C'     => '换货',
    'S'     => '补货',
    'N'     => '现货订单',
    'U'     => '秒送',
    'G'     => '贺卡服务',
    'F'     => '鲜花',
    'T'     => '团购',
    'D'     => '子订单',
    'Q'     => '期货订单',
    'X'     => '美金订单',
    //'R'     => '信用额度付款',
);

$_getAreaId  = array(
    '上海'=>46064,'浙江'=>11,'江苏'=>10,'安徽'=>12,
    '广东'=>19,'汕头'=>191,'珠三角'=>192,'福建'=>13,'海南'=>21,'广西'=>20,
    '北京'=>46062,'天津'=>46063,'河北'=>3,'山东'=>15,'山西'=>4,'内蒙古'=>5,
    '湖北'=>17,'江西'=>14,'湖南'=>18,'河南'=>16,
    '辽宁'=>6,'吉林'=>7,'黑龙江'=>8,
    '重庆'=>22,'四川'=>23,'云南'=>25,'贵州'=>24,'西藏'=>26,
    '陕西'=>27,'甘肃'=>28,'宁夏'=>30,'青海'=>29,'新疆'=>31
);

$_getAreaname  = array(
    46064=>'上海',
    11=>'浙江',
    10=>'江苏',
    12 =>'安徽',
    19=>'广东',
    191=>'汕头',
    192=>'珠三角',
    13=>'福建',
    21=>'海南',
    20=>'广西',
    46062=>'北京',
    46063=>'天津',
    3=>'河北',
    15 =>'山东',
    4=>'山西',
    5=>'内蒙古',
    17=>'湖北',
    14=>'江西',
    18 =>'湖南',
    16 =>'河南',
    6=>'辽宁',
    7=>'吉林',
    8=>'黑龙江',
    22=>'重庆',
    23=>'四川',
    25=>'云南',
    24=>'贵州',
    26=>'西藏',
    27=>'陕西',
    28=> '甘肃',
    30=>'宁夏',
    29=>'青海',
    31=>'新疆',
    0 =>'其他地区'
);
//这是设置固定的地区查询
$_getAreaNames = array(
    2=>'天津',
    84=>'盘锦',
    9=>'上海',
    117=>'常州',
    118=>'苏州',
    127=>'杭州',
    128=>'宁波',
    129=>'温州',
    132=>'绍兴',
    155=>'福州',
    156=>'厦门',
    159=>'泉州',
    176=>'青岛',
    200=>'濮阳',
    236=>'广州',
    238=>'深圳',
    239=>'珠海',
    240=>'汕头',
    241=>'佛山',
    242=>'江门',
    243=>'湛江',
    244=>'茂名',
    246=>'惠州',
    252=>'东莞',
    257=>'南宁',
    261=>'北海',
    22=>'重庆',
    1329=>'余姚',
    28930=>'乐从',
    253=>'中山',
    75=>'大连',
    103=>'大庆',
    77=>'抚顺',
    339=>'兰州',
);


//产品上架状态配置项
$_productCarriageStatusCfg = array(
    'InEditing' => 0, //编辑中
    'Wait_CG' => 1, //等待采购审核
    'Wait_CK' => 2, //等待仓储审核
    'Wait_SC' => 3, //等待市场审核
    'waitCh' => 6,
    'waitPl' => 7,
    'CarriageNormal' => 8, //已上架
    'CarraigeOff' => 9 //已下架
);

$_commentType = array(
    'Consult' => 'Z', //咨询
    'Comment' => 'C', //评论
    'Reply' => 'R', //回复
    'Receipt_comment' => 'S'   //收礼人评论
);

$_orderDeliveryTypeMean =array(
    1 => 'T',
    2 => 'S'
);
$_orderDeliveryTypeCfg = array(
    'T' => "自提",
    'S' => "配送"
);

//支付定金百分比
$_depositCfg = array(
    'deposit'   => 0.3
);


## 登录类型配置
$_loginTypeCfg = array(
    'User' => 'U', // 用户
    'Booklet' => 'B', // 定制礼品册
    'Card' => 'C', // 礼品卡
    'Univbooklet' => 'G', // 通用礼品册
);

// 用户登录项设置
$_userLoginItemCfg = array(
    'User' => 'U',
    'Email' => 'E', // Email
    'Mobile' => 'M', // 手机号
    'Tencent' => 'Q', // 腾讯用户
    'Sina' => 'S', // 新浪微博用户
    'Alipay' => 'A'  // 支付宝用户
);

########################发布信息的配置
$_PublishTypeCfg = array(
    1=>"Q",
    2=>"I"
);

$_PublishTypeCfgMean = array(
    "Q"=>"发布报价",
    "I"=>"发布求购",
);

$_PublishStatusCfg = array(
    'wait_audit'=>1,
    'wait_publish'=>2,
    'published'=>3,
    'undo_audit'=>4,
);

$_PublishStatusMean = array(
   1=>"等待审核",
   2=>"等待发布",
   3=>"发布成功",
   4=>"审核不通过",
);

$_sphinxConfig = array(
                            'host'      => '192.168.1.87',
                            'port'      => 9312,
//                            'SPH_MATCH' => SPH_MATCH_ALL,
);

$_PublishTimeCfg = array(
    1=>"1天内",
    2=>"3天内",
    3=>"5天内",
    4=>"10天内",
    5=>"15天内",
    6=>"30天内",
);

$_settlement =array('L/C-A/S','L/C-60天','L/C-90天','L/C-120天','T/T');
